package com.example.demo.service.impl;

import com.example.demo.dao.Blog_diary;
import com.example.demo.mapper.Blog_diaryMapper;
import com.example.demo.service.Blog_diaryservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Blog_diaryserviceimpl implements Blog_diaryservice {
    @Autowired
    Blog_diaryMapper blog_diaryMapper;

    @Override
    public int deleteByPrimaryKey(Integer diaryId) {
        return blog_diaryMapper.deleteByPrimaryKey(diaryId);
    }

    @Override
    public int insert(Blog_diary record) {
        return blog_diaryMapper.insert(record);
    }

    @Override
    public int insertSelective(Blog_diary record) {
        return blog_diaryMapper.insertSelective(record);
    }

    @Override
    public Blog_diary selectByPrimaryKey(Integer diaryId) {
        return blog_diaryMapper.selectByPrimaryKey(diaryId);
    }

    @Override
    public int updateByPrimaryKeySelective(Blog_diary record) {
        return blog_diaryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Blog_diary record) {
        return blog_diaryMapper.updateByPrimaryKey(record);
    }
}
